package com.itheima.mapper;

import com.itheima.domain.Member;

/**
 * @PackageName: com.itheima.mapper
 * @ClassName: MemberMapper
 * @Author: Solomon
 * @Date: 2020/7/13 14:53
 * @Description:
 */
public interface MemberMapper {
    //根据手机号查找会员
    Member findByTelephone(String telephone);

    //新增会员
    void addMember(Member member);

    //本日新增会员数
    Integer findMemberCountByDate(String today);

    //总会员数
    Integer findMemberTotalCount();

    //根据日期统计会员数，统计指定日期之前的会员数
    Integer findMemberCountBeforeDate(String date);

    //本周新增会员数
    Integer findMemberCountByWeekDate();

    //本月新增会员数
    Integer findMemberCountByMonthDate();
}
